﻿using Rubikev.Common;

namespace Rubikev.Rockface.Core.Entities
{
   /// <summary>
   /// Represents a point on a route
   /// </summary>
   public class Point : EntityBase, IChildEntity<Route>
   {
      /// <summary>
      /// The x-position of the point, from 0-1
      /// </summary>
      public double X { get; set; }

      /// <summary>
      /// The y-position of the point, from 0-1
      /// </summary>
      public double Y { get; set; }

      /// <summary>
      /// The 0-based index of the point - 0 is the first point in a route, 1 is the second, etc.
      /// </summary>
      public int Index { get; set; }

      /// <summary>
      /// The route this point is on
      /// </summary>
      public Route ParentEntity { get; set; }
   }
}
